import request from "@/utils/request";
/**
 * 查询我的合同
 */
export const contractPage = params => {
  return request({
    url: "/crm/buildserver/meterialReceive/page",
    method: "get",
    params
  });
};

/**
 * 查询步骤
 */
export const getTaskList = params => {
  return request({
    url: "/crm/buildserver/meterialReceive/getTaskList",
    method: "get",
    params
  });
};

/**
 * 查询当前登录租户是否展示单价
 */
export const judgmentShowApplyGoodsCost = params => {
  return request({
    url: "/mall/pc/material/select/judgmentShowApplyGoodsCost",
    method: "get"
  });
};

/**
 * 查询辅材已申领/总预算
 */
export const getAuxiliaryMaterialAmount = params => {
  return request({
    url: `/mall/pc/material/getAuxiliaryMaterialAmount/${params.contractId}`,
    method: "get"
  });
};

/**
 * 已申领查询
 */
export const getCompleteApplicationPage = data => {
  return request({
    url: "/mall/pc/material/page/getCompleteApplicationPage",
    method: "post",
    data
  });
};

/**
 * 申领审核信息查询
 */
export const getApplicationReviewPage = data => {
  return request({
    url: "/mall/pc/material/page/getApplicationReviewPage",
    method: "post",
    data
  });
};
